package com.cf.common.util.tree;

import java.io.Serializable;
import java.util.List;

/**
 * @author ChenFeng
 * @date 2021/11/5 11:01 上午
 * @description
 */
public interface INode<T> extends Serializable {
    Long getId();

    Long getParentId();

    List<T> getChildren();

    default Boolean getHasChildren() {
        return false;
    }
}
